package com.hqyj.finance.server.invest.financeinvest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.finance.server.invest.financeinvest.entity.UserStock;
import com.hqyj.finance.server.invest.financeinvest.views.UserStockKLineGraphicView;
import com.hqyj.finance.server.invest.financeinvest.views.UserStockView;

import java.util.List;

public interface UserStockService extends IService<UserStock> {

    public boolean saveUserStock(UserStock userStock) throws Exception; //添加用户的自选股


    public List<UserStock> queryUserStockListByUid(Integer uid) throws Exception;

    public String queryUserStockRealInfoByStockCode(String code) throws Exception;

    //根据用户编号查询用自选股的集合
    public List<UserStockView> queryUserStockViewByUid(Integer uid) throws Exception;

    public UserStockKLineGraphicView queryUserStockLineGraphicViewByCode(String code,String type) throws Exception;

}
